package com.fjwt.gz.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fjwt.gz.db.dto.AuAuditRecordsDTO;
import com.fjwt.gz.db.entity.AuAuditRecordsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjwt.gz.db.vo.AuAuditRecordsVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 活动审批记录表 Mapper 接口
 * </p>
 *
 * @author shiyonghao
 * @since 2025-04-09
 */
public interface AuAuditRecordsMapper extends BaseMapper<AuAuditRecordsEntity> {

    /**
     * 分页查询 审批列表
     * @param iPage
     * @param auditRecordsDTO
     * @return
     */
    IPage<AuAuditRecordsVO> selectAuditRecordsEntityPage(IPage iPage, @Param("auditRecordsDTO") AuAuditRecordsDTO auditRecordsDTO);

    /**
     * 查询活动是否是manager创建的
     * @return
     */
    List<AuAuditRecordsVO> selectManagerActivity(@Param("activityIds") Collection<Long> activityIds);
}
